<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
    div{
      width: 200px;
      height: 50px;
      border: 1px solid red;
      /*文本水平对齐方式*/
      text-align: center;
      /*行高*/
      line-height: 50px;
      /*文本修饰*/
      text-decoration: overline;/*overline 上划线*/
      text-decoration: underline;/*underline 下划线*/
      text-decoration: line-through;/*line-through 删除线*/
      /*文本阴影：颜色 x偏移值 y偏移值 浓度*/
      text-shadow: red -0px -0px 0px;
      /*设置字体大小*/
      font-size: 20px;
      /*字体加粗*/
      font-weight: bold; /*bold 字体加粗*/
    }
    h3{
      font-weight: normal;/*normal 字体去掉加粗*/
      /*设置斜体*/
      font-style: italic;/*italic 斜体*/
      /*设置字体版本*/
      /*font-family:cursive;*/
      font:30px cursive;/*会覆盖斜体，要重新设置*/

    }
    a{
      text-decoration: none;/*none 去掉文本修饰*/
    }
  </style>
</head>
<body>
<div>文本和字体测试</div>
<a href="">超链接</a>
<h3>这是个H3</h3>
</body>
</html>